home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-14 | 674 b | 33 lines | [TEXT/MPCC] |
- // fastmap.h
-
- #include <QDOffscreen.h>
-
- /*
- ** Definitions
- */
-
- typedef struct {
- short frames;
- short masked;
- } frameData;
-
- class Fastmap {
- public:
- short width, height;
- Boolean masked;
-
- long *bits;
-
- // constructor/destructor
- Fastmap( GWorldPtr gw, Boolean isMasked, short index = 0, short hsize = 0, short vsize = 0 );
- ~Fastmap( void );
-
- // interface
- void Draw(GWorldPtr destworld, Rect *r);
- void DrawMask(GWorldPtr destworld, Rect *r);
- void Draw8by8(GWorldPtr destworld, Rect *r);
- private:
- void Draw8by8Mask(GWorldPtr destworld, Rect *r);
- };
-
- void LoadFastmaps(short baseID, short num, frameData *frameCounts, Rect *blockrect, Fastmap **bpix, short maxFrames);